package org.tloss.web.editor.model.oper.logical;

import org.tloss.web.editor.utils.Constants;

public class NotOperator extends OneOperatorSupport {

	@Override
	public boolean supportTail() {
		return false;
	}

	@Override
	public String getDisplayText() {
		return " NOT ";
	}

	@Override
	public String generate(int type, Object[] data) {
		if (type == Constants.CodeType.JAVA) {
			return " ! ";
		}
		return getDisplayText();
	}

}
